package com.ithinks.flow.common.utils.protocol.socket.nio;

/**
 * @Description
 * @ClassName NioServer
 * @Author MR.LI
 * @date 2020.12.08 17:57
 */
public class NioServer {

    private static NioServerHandler handler;

    public static void start(){
        if(handler !=null)
            handler.stop();
        handler = new NioServerHandler(8888);
        new Thread(handler,"server").start();

    }
    public static void main(String[] args) {
        start();
    }
}
